
#ifndef ALGORITHM_H
#define ALGORITHM_H

#ifdef __cplusplus
extern "C" {
#endif 
	

#include "gd32e10x.h"




uint8_t get_chk_xor(uint8_t * da, uint32_t len);
void u32toHex4(uint32_t lDa, uint8_t * pDa);
void u16toHex2(uint32_t lDa, uint8_t * pDa);
uint32_t hex4CombineOne(uint8_t * da);
uint16_t hex2CombineOne(uint8_t * da);
uint32_t my_abs(uint32_t a, uint32_t b);


#ifdef __cplusplus
}
#endif


#endif
